<!--
 * @Description: 
 * @Author: yyang
 * @Date: 2023-02-09 09:12:22
 * @LastEditTime: 2023-04-28 16:11:54
 * @LastEditors: yyang
 * @Reference: 
-->
<script setup lang="ts">
import datePicker from "@/components/Form/datePicker.vue";
import { ref } from "vue";
const date = ref("2022-03-08");
const date2 = ref("");

//获取下拉框选中的值
function onSubmit(e: any) {
	console.log(e);
}
</script>

<template>
	<van-form @submit="onSubmit" input-align="right">
		<div class="padding_15">
			<div class="public_form_box">
				<!-- <date-picker
				class="public_bottom_line"
				v-model="date"
				name="建成时间:"
				required
				allowClear
				@onConfirm="onConfirm"></date-picker> -->
				<datePicker
					label="第一个日期"
					class="public_bottom_line"
					v-model="date"
					required
					:rules="[{required:true,message:'1'}]"
					name="txt"></datePicker>
				<datePicker
					name="txt2"
					label="第二个日期"
					class="public_bottom_line"
					v-model="date2"></datePicker>
			</div>
		</div>
		<div style="margin: 16px">
			<van-button round block type="primary" native-type="submit"> 提交 </van-button>
		</div>
	</van-form>
</template>
